package org.ucas.faker.web.fetcher.cond;

import org.ucas.faker.web.fetcher.meta.ColumnField;
import org.ucas.faker.web.fetcher.meta.Table;

import java.io.Serializable;

public class NotCond extends FetchCond implements Serializable {

  public FetchCond cond;

  public NotCond(FetchCond cond) {
    this.cond = cond;
  }

  @Override
  public String sql() {
    return cond == null? "" : "NOT " + cond.sql();
  }

  @Override
  public void replace(Table src, Table dst) {
    cond.replace(src,dst);
  }
}
